package com.wsdk;

/**
 * WsdkConfig
 *
 * @author fionera
 * @date 2018/6/20 in mobile_seal_android
 */
public class WsdkConfig {
    private String rootUrl;
    private boolean useEmbedLogic;

    private WsdkConfig() {

    }

    public String getRootUrl() {
        return rootUrl;
    }

    public void setRootUrl(String rootUrl) {
        this.rootUrl = rootUrl;
    }

    public boolean isUseEmbedLogic() {
        return useEmbedLogic;
    }

    public void setUseEmbedLogic(boolean useEmbedLogic) {
        this.useEmbedLogic = useEmbedLogic;
    }

    public static class Builder {
        private WsdkConfig wsdkConfig;

        public Builder() {
            wsdkConfig = new WsdkConfig();
            wsdkConfig.rootUrl = "";
            wsdkConfig.useEmbedLogic = true;
        }

        public Builder setRootUrl(String rootUrl) {
            wsdkConfig.rootUrl = rootUrl;
            return this;
        }

        public Builder setUseEmbedLogic(boolean useEmbedLogic) {
            wsdkConfig.useEmbedLogic = useEmbedLogic;
            return this;
        }

        public WsdkConfig build() {
            return wsdkConfig;
        }
    }
}
